<div class="panel panel-default" ng-controller="RouteListCtrl">
	<div class="panel-heading">
		城际约租 / 线路模版
	</div>
	<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
	<div class="row wrapper m-n">
		<form class="bs-example form-horizontal ng-pristine ng-valid">
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.city1__name" class="form-control" placeholder="起始城市">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<input type="text" ng-model="queryMap.city2__name" class="form-control" placeholder="目的城市">
				</div>
			</div>
			<div class="form-group col-md-4">
				<div class="col-md-11">
					<button type="button" class="btn btn-info" ng-click="query()">查询</button>
				</div>
			</div>
		</form>
	</div>
	<div class="table-responsive">
		<table class="table table-striped b-t b-light">
			<thead>
				<tr>
					<th style="width:10px;"></th>
					<th style="width:70px;">编号</th>
					<th style="width:70px;">起始城市</th>
					<th style="width:70px;">目的城市</th>
					<th style="width:80px;">
						<a href tooltip="添加模版" has-authority="RENT_ROUTE_ADD"><i class="fa fa-plus fa-fw m-r-xs" ng-click="write('lg',null,'insert')"></i></a>
					</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-repeat="route in dataList">
					<td></td>
					<td>{{route.code}}</td>
					<td>{{route.city1.name}}</td>
					<td>{{route.city2.name}}</td>
					<td>
						<a href tooltip="修改" has-authority="RENT_ROUTE_UPDATE"><i class="fa fa-pencil fa-fw m-r-xs" ng-click="write('lg',route,'update')" ></i></a>
						<a href tooltip="删除" has-authority="RENT_ROUTE_DEL"><i class="fa fa-times fa-fw" ng-click="del('sm',route ,'delete')" ></i></a>
					</td>
				</tr>
				<tr ng-show="dataList.length == 0">
					<td colspan="5" style="text-align: center;">暂无线路模版信息</td>
				</tr>
			</tbody>
		</table>
	</div>
	<page-footer/>
</div>